<template>
	<li @click="deleteClick">{{content}}</li>
</template>

<script>
export default {
  props:['content',"index"],
  methods:{
  	deleteClick(){
//			alert(this.index);
				this.$emit('delete',this.index)

  	}
  }
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
/*scoped 让样式只对该组件起作用对其他页面无用*/
</style>
